package com.app.mapper;

import com.app.entity.Orders;
import com.app.entity.resParams.OrdersCoachRes;
import com.app.entity.resParams.UserOrders;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author zxy
 * @since 2021-04-07
 */
public interface OrderMapper extends BaseMapper<Orders> {

    List<OrdersCoachRes> findOrdersAndCoach(@Param("sid") Integer sid, @Param("time") String time);

    UserOrders findOrdersByCoach(@Param("id") Integer id);

    List<OrdersCoachRes> findAllOrderByAdmin(@Param("state") Character c);
}
